import { createRouter, createWebHashHistory } from 'vue-router';

// 1.创建路由规则
const routes = [
    { path: '/',
      redirect: '/index',  //重定向首页
    },
    { path: '/index?scf01=445445434434543454345',
      name: 'Home', 
      component: () => import('../views/index/index.vue')
    },
]
// 2.创建路由实例
const router = createRouter({
    // createWebHistory
    history: createWebHashHistory(), 
    routes,
});

export default router;

// 3.创建登录组件
// 4.指定出口
